6e7910
@@ -152,6 +152,13 @@
public class GwtOperationsImpl implements GwtOperations, MetadataNotificationLis
 			// Ensure the gwt-maven-plugin appropriate to a GAE enabled or disabled environment is updated
 			updateBuildPlugins(isGaeEnabled);
 
+			//If there is a class that could possibly import from the appengine sdk, denoted here as having Gae in the type name, then we need to add the appengine-api-1.0-sdk dependency to the pom.xml file
+			String rootPath = projectOperations.getPathResolver().getRoot(Path.ROOT);
+			Set<FileDetails> files = fileManager.findMatchingAntPath(rootPath + "/**/*Gae*.java");
+			if (files.size() > 0) {
+				projectOperations.addDependency("com.google.appengine", "appengine-api-1.0-sdk", "1.4.3");
+			}
+
 			// Copy across any missing files, only if GAE state has changed and is now enabled
 			if (isGaeEnabled) {
 				copyDirectoryContents();
